<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            height: 0;
        }

        .nav ul {
            margin: 300px;
        }

        .nav li {
            width: 100px;
            height: 35px;
            float: left;
            perspective: 200px;
            list-style: none;
            margin-right: 50px;

        }

        .box {
            position: relative;
            list-style: none;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform .5s;
        }



        .show,
        .hide {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .show {
            background-color: red;
            transform: translateZ(17.5px);
        }

        .hide {
            background-color: pink;
            transform: translateY(17.5px) rotateX(-90deg);
        }

        .box:hover {
            transform: rotateX(90deg);
        }
    </style>
</head>

<body>
    <div class="nav">
        <ul>
            <li>
                <div class="box">
                    <div class="show">传智播客</div>
                    <div class="hide">传智播客</div>
                </div>
            </li>
            <li>
                <div class="box">
                    <div class="show">传智播客</div>
                    <div class="hide">传智播客</div>
                </div>
            </li>
            <li>
                <div class="box">
                    <div class="show">传智播客</div>
                    <div class="hide">传智播客</div>
                </div>
            </li>
            <li>
                <div class="box">
                    <div class="show">传智播客</div>
                    <div class="hide">传智播客</div>
                </div>
            </li>
            <li>
                <div class="box">
                    <div class="show">传智播客</div>
                    <div class="hide">传智播客</div>
                </div>
            </li>

        </ul>
    </div>
</body>

</html>